<?php

session_start();

echo'<h1>Registered Users Only</h1>';

//check session variable

if(isset($_SESSION['valid_user']))
{
	echo'<p>You are logged in as '.$_SESSION['valid_user'].'</p>';
	echo'<p>Teachers Only content goes here</p>';
}
else
{
	echo'<p>You are not logged in.</p>';
	echo'<p>Only registered users may see this page.</p>';
}
echo'<a href="authmain.php"> Back to Registered User page.</a>';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>

</body>
</html>